package com.zb.frame.base.enums;

/**
 * <p>
 *  JWT解析码
 * </p>
 *
 * @author bangZZ
 * @since 2020-06-04
 */
public enum AuthenticationStatus {

    SUCCESS("success", "成功"),
    EXPIRED("token expired", "token过期"),
    UNSUPPORTED("invalid token", "token无效"),
    MALFORMED("wrong format ", "token格式错误"),
    SIGNATURE("invalid token signature", "token签名无效"),
    ILLEGAL("parameter exception", "token参数异常"),
    LOCKED("account is disabled", "用户被禁用"),
    DISABLED("account is locked", "用户被锁定")
    ;

    private final String reason;
    private final String desc;

    private AuthenticationStatus(String reason, String desc) {
        this.reason = reason;
        this.desc = desc;
    }

    public String getReason() {
        return reason;
    }

    public String getDesc() {
        return desc;
    }
}
